package com.dj.domain.exception;

import java.util.HashMap;
import java.util.Map;

/**
 * 类ExceptionCode.java的实现描述：TODO 类实现描述
 * 
 * @author jasen.hsu.cn@gmail.com 2012-4-17 下午10:02:45
 */
public class ExceptionCode {

    public static String       ERROR_LOGINID_OR_PSW = "ERROR_LOGINID_OR_PSW";
    static Map<String, String> errorInfo            = new HashMap<String, String>();

    static {
        errorInfo.put(ERROR_LOGINID_OR_PSW, "");
    }

    public static String getErrorInfo(String errorCode) {
        String message = errorInfo.get(errorCode);
        if (message == null) {
            return "系统异常";
        }
        return message;
    }
}
